package com.ruoyi.business.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;


/**
 * 预警推送人配置业务对象 warning_config_to
 *
 * @author ruoyi
 * @date 2024-05-03
 */

@Data
public class WarningConfigToBo {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long toId;

    /**
     * 预警id
     */
    @NotNull(message = "预警id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long warningId;

    /**
     * 上级id(当前级别推送最大次数后逐级向下推送)
     */
    @NotNull(message = "上级id(当前级别推送最大次数后逐级向下推送)不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long parentId;

    /**
     * 岗位ids(,分割)
     */
    @NotBlank(message = "岗位ids(,分割)不能为空", groups = { AddGroup.class, EditGroup.class })
    private String postIds;

    /**
     * 最大推送次数
     */
    @NotNull(message = "最大推送次数不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long maxWarningNum;


}
